import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    name: "Login",
    component: ()=>import('./Login.vue'),
    meta: { title: "登录" }
  },{
    path: "/register",
    name: "Register",
    component: ()=>import('./Register.vue'),
    meta: { title: "注册" }
  }
];

const router = new VueRouter({
  routes,
});

export default router;
